Data-driven assisted real-time optimal control strategy of submerged arc furnace via intelligent energy terminals considering large-scale renewable energy utilization

This study presents a data-driven assisted real-time optimization model which is an innovative approach to address the challenges posed by integrating Submerged Arc Furnace (SAF) systems with renewable energy sources, specifically photovoltaic (PV) and wind power, with modern intelligent energy terminals. Specifically, the proposed method is divided into two stages. The first stage is related to data-driven prediction for addressing local time-varying renewable energy and electricity market prices with predicted information, and the second stage uses an optimization model for real-time SAF dispatch. Connections between intelligent energy terminals, demand-side devices, and load management systems are established to enhance local renewable resource utilization. Additionally, mathematical formulations of the operating resistance in SAF are explored, and deep neuron networks are employed and modified for dynamic uncertainty prediction. The proposed approach is validated through a case study involving an intelligent energy terminal with a 12.5 MVA SAF system and 12 MW capacity renewable generators in an electricity market with fluctuating prices. The findings of this research underscore the efficacy of the proposed optimization model in reducing operational costs and enhancing the utilization of localized renewable energy generation. By integrating four distinct dissatisfaction coefficients into the optimization framework, we demonstrate the model's adaptability and efficiency. The application of the optimization strategy delineated herein results in the SAF system's profitability oscillating between $111 and $416 across various time intervals, contingent upon the coefficient settings. Remarkably, an aggregate daily loss recovery amounting to $1,906.84 can be realized during the optimization period. Such outcomes not only signify considerable economic advantages but also contribute to grid stability and the diminution of renewable energy curtailment, thereby underscoring the dual benefits of economic efficiency and sustainability in energy management practices.


Data-driven assisted real-time optimal control strategy of submerged arc furnace via intelligent energy terminals considering large-scale renewable energy utilization
Bowen Zheng 1 , Mingming Pan 1 , Qixin Liu 2 , Xu Xu 2* , Chang Liu 1 , Xuchen Wang 2 , Wen Chu 3 , Shiming Tian 1 , Jindou Yuan 1 , Yuting Xu 1 , Zishang Xu 1 & Yongjun Li 1 This study presents a data-driven assisted real-time optimization model which is an innovative approach to address the challenges posed by integrating Submerged Arc Furnace (SAF) systems with renewable energy sources, specifically photovoltaic (PV) and wind power, with modern intelligent energy terminals.Specifically, the proposed method is divided into two stages.The first stage is related to data-driven prediction for addressing local time-varying renewable energy and electricity market prices with predicted information, and the second stage uses an optimization model for realtime SAF dispatch.Connections between intelligent energy terminals, demand-side devices, and load management systems are established to enhance local renewable resource utilization.Additionally, mathematical formulations of the operating resistance in SAF are explored, and deep neuron networks are employed and modified for dynamic uncertainty prediction.The proposed approach is validated through a case study involving an intelligent energy terminal with a 12.5 MVA SAF system and 12 MW capacity renewable generators in an electricity market with fluctuating prices.The findings of this research underscore the efficacy of the proposed optimization model in reducing operational costs and enhancing the utilization of localized renewable energy generation.By integrating four distinct dissatisfaction coefficients into the optimization framework, we demonstrate the model's adaptability and efficiency.The application of the optimization strategy delineated herein results in the SAF system's profitability oscillating between $111 and $416 across various time intervals, contingent upon the coefficient settings.Remarkably, an aggregate daily loss recovery amounting to $1,906.84 can be realized during the optimization period.Such outcomes not only signify considerable economic advantages but also contribute to grid stability and the diminution of renewable energy curtailment, thereby underscoring the dual benefits of economic efficiency and sustainability in energy management practices.
In light of the increasingly severe energy crisis and the growing issue of global environmental pollution, there is a projected increase in the adoption of alternative energy sources within the power system, particularly photovoltaic (PV) and wind power.The increased dependence on these energy sources gives rise to fluctuations and unpredictability, presenting notable obstacles to maintaining stable frequency regulation in the power grid.As the reliance on conventional thermal power units diminishes, relying exclusively on the regulatory capacities of these units becomes inadequate progressively in mitigating the inherent swings associated with renewable energies.Nevertheless, implementing demand-side response strategies, specifically targeting significant industrial loads, presents a promising way to address these issues.Substantial energy-intensive industrial loads, such as electrolytic aluminium furnaces, submerged arc furnaces, and polysilicon production furnaces, possess many advantageous characteristics.These systems have significant capabilities, prolonged heat storage periods, remarkable control capabilities, and substantial customizable possibilities.The ability to modify their active power within brief timeframes does not harm their production processes, rendering them highly promising adaptable assets within the power ecosystem.
However, existing submerged arc furnace (SAF) system planning studies have ignored that SAFs combined with dis-distributed energy generation farms can peak and dissipate excess power.For instance, Reference 1 delves into optimizing raw materials with high Al 2 O 3 content and enhancing processes in the SAF for increased aluminium and silicon extraction.In Reference 2 , a 3D transient mathematical model is presented to simulate multiphase flow and thermochemical reactions within an industrial furnace.Reference 3 applies computational fluid dynamics (CFD) and a 3D model to assess the operations of a SAF in ferronickel production.Reference 4 explores the influence of varying weight percentages of biomass pellets on biocoke's properties and its potential use in blast and SAFs.In Reference 5 , a focus is placed on how different raw materials impact the silicon yield and energy consumption in SAFs.Reference 6 offers a thermodynamic analysis of high-carbon ferromanganese alloy production in a SAF, with slag fluxing strategies and a simulation model.Reference 7 describes the carbothermic process for producing specific iron-silicon-aluminum alloys in industrial settings.Most of studies focus on modeling and optimizing SAFs for various metallurgical applications, including silicon and other metal alloys.Several of these studies emphasize the significance of efficient smelting processes, the comprehensive comprehension of charge materials, and their influence on energy consumption.Additionally, they high-light the importance of advanced computational models, including 3D mathematical models and CFD models, in augmenting these processes.Acknowledging the multifaceted nature of contemporary SAFs, it is essential to recognize that they are not merely conventional smelting instruments but complex systems that can be customized to enhance their overall performance.By employing creative tactics and incorporating research insights from the initial design and planning phases, the collective capacity of these furnaces can be significantly enhanced.
There are also studies in the electrical field that focus on current, such as Reference 8 , which presents a comprehensive framework merging electrical dynamics with heat, material transition, and chemical reactions in furnace operations.Reference 9 offers an in-depth exploration of a tri-phase SAF's current pathways, highlighting elements like electrode configurations and primary arcs.Reference 10 introduces a cutting-edge dual particle swarm optimization technique to bolster the efficiency and precision of model parameter determinations.Meanwhile, Reference 11 delves into how electrode placements impact the SAF's electrical nuances, utilizing a tri-dimensional design in ANSYS Maxwell that factors in alternating current via an eddy current mechanism.
Reference 12 introduces an energy-sharing model based on the Nash bargaining game between multimicrogrids, while Reference 13 proposes a multi-constraints single objective capacity optimization method for utility-scale photovoltaic-electrolysis-battery (WPEB) systems.In Reference 14 , a deep reinforcement learning method is applied to address dynamic and stochastic optimization problems in long-range planning, considering various uncertainties and constraints.Furthermore, Reference 15 suggests a novel control technique for optimizing hybrid renewable energy sources (HRES) through the utilization of a high-gain DC-to-DC converter topology.The current literature on optimizing SAF systems needs to be revised, especially when integrated with PV and wind energy.One prevalent approach employs intelligent energy terminals to adjust power levels based on electricity spot market prices 16 .However, while this method offers insights, it needs to holistically address the intricacies of SAF systems.Specifically, there are challenges when considering (i) the incentive compensation from the ancillary service market, which can significantly alter the system's economics, and (ii) the penalties associated with discrepancies between the real power of the SAF and the clearing power in the ancillary service market.To address these complexities, advanced optimization techniques are required.Therefore, the paper aims to establish connections between intelligent energy terminals, demand-side devices, and load management systems to improve the utilization of local renewable resources.
In Reference 17 , introduces a pioneering time sequence analysis (TSA) method.This method stands out for its ability to facilitate chronological analysis spanning from the initial year to the ultimate target year.Meanwhile, Reference 18 addresses the formidable challenge of handling the uncertainty associated with wind power over an extensive temporal horizon.Employing a robust optimization (RO) approach grounded in the budget uncertainty set, this study prioritizes both robustness and economic considerations.However, despite the valuable contributions of References 17,18 in the realms of time sequence analysis (TSA) and robust optimization (RO) for wind power uncertainty, there exist notable research gaps that our study aims to address.
Contrary to the predominant focus on modeling and optimizing submerged arc furnaces (SAFs) for metallurgical applications in the provided literature, there is a growing need to integrate SAF systems with renewable energy sources such as photovoltaic (PV) and wind energy.While references 13 and 14 discuss approaches involving intelligent energy terminals and time sequence analysis (TSA), respectively, the current literature lacks a comprehensive examination of the challenges associated with the integration of SAFs and renewable energy.The mentioned references touch on the economic considerations, electricity spot market prices, and even compensation from the ancillary service market.However, there is a distinct absence of detailed discussions on the potential hurdles arising from the interaction between SAFs and renewable energy, such as the fluctuating nature of wind power and its impact on system economics.Additionally, there is a need for more advanced optimization techniques that can address complexities like incentive compensation and penalties associated with discrepancies in power levels.In light of this, future research should aim to bridge the gap between intelligent energy terminals, demand-side devices, and load management systems, offering a more holistic perspective on the utilization of local renewable resources in conjunction with SAF systems.
In this regard, this paper proposes an innovative approach to address the challenges posed by integrating SAF systems with renewable energy sources, specifically PV and wind power, with modern intelligent energy terminals.Specifically, the proposed method is divided into two stages.The first stage is related to data-drivenbased prediction for addressing local time-varying renewable energy and electricity market prices with predicted information, and the second stage is to use an optimization model for real-time SAF dispatch.The main contributions of this work can be summarized as follows: (1) Unlike existing literature on optimizing SAF systems, this paper focuses on the mathematical model of SAF to establish a comprehensive real-time control strategy for SAF with intelligent energy terminals.By employing this real-time control strategy, the SAF model can be more accurately controlled.(2) Considering the uncertainties arising from intermitted renewable generation and electricity prices, the prediction model is used and revised to address the possible issues.The optimization results for renewable dispatch and SAF control obtained from the proposed model are more reasonable with the high-accuracy predicted information.
The proposed method is divided into two stages.The first stage is related to data-driven-based prediction for addressing the local time-varying renewable energy and electricity market price with predicted information, and the second stage uses an optimization model for real-time SAF dispatch.Meanwhile, connections are established between intelligent energy terminals, demand-side devices, and load management systems to improve the utilization level of local renewable energy.

Connection of intelligent energy terminals
In most cases, these intelligent energy terminals are installed on the side of the clients.They can establish communication linkages with the master station and various energy measuring and control terminals, and they are primarily utilized in areas with strong public wireless communication networks and less electromagnetic interference.These areas typically include customer substations and power distribution rooms.To establish a secure connection, these terminals establish a connection with the master station via a vertical security authentication platform.Furthermore, the connections are made with a multitude of devices through a combination of wired and wireless hybrid networking, including: 1.The utilization of intelligent equipment incorporating communication interfaces, such as central air conditioning chillers, distributed power inverters, and electric boiler control units.These interfaces facilitate the monitoring of equipment status in real time and allow for the delivery of control instructions to manage the power states of the equipment effectively.2. The customer's on-site measuring devices, including advanced electrical meters placed by power grid corporations or power demand response implementation agencies.The measurement and control modules are responsible for monitoring both electrical and non-electrical factors.3. Load switches, also known as circuit breakers, are utilized in non-intelligent equipment to enable direct manipulation of the power states of said equipment.
Figure 1 depicts the interconnections of the intelligent energy terminals, the demand-side devices, as well the power loading administration system.
The intelligent energy terminals encompass a range of essential functionalities, including the acquisition of power data, the monitoring of power quality, and the evaluation of power usage.In addition, these systems offer additional functionalities such as resource management, flexible control, load monitoring, and the capacity to effectively coordinate and modify resource distribution.
In this study, we explore the critical roles that intelligent energy terminals play in the domain of electrical power systems.The aforementioned functions play a pivotal role in the attainment of effective energy management and the optimization of energy use.To provide a full overview of these functions, we have produced a table (see Table 1) that meticulously delineates essential areas such as resource management, flexible control, load monitoring, and changeable resource scheduling.The aforementioned features are achieved by implementing intelligent energy terminals, along with relevant technological solutions and strategic approaches.The next section provides a more comprehensive analysis of these functions, highlighting their inherent worth and pragmatic implementations within the realm of electrical power.

Methodology description
As shown in Fig. 2, this study employs a two-stage optimization model.In the first stage, sustainable energy data is processed through an LSTM encoder-decoder sequence-to-sequence model, successfully forecasting the power output of wind and solar energy.Concurrently, electricity price data for selling to the grid is processed using an ELM model, and the selling price is predicted using the ELM algorithm, thereby obtaining predictive information.
In the second stage, the SAF system is modeled and integrated with the intelligent energy control system proposed in this study.Within the SAF system, the working resistance is a critical parameter, and its mathematical model is incorporated into our study's model amidst a complex production process, encompassing factors such as resistance constants, current, and power.Following theoretical analysis and production evaluation, the mathematical relationship between the working resistance and the electrode insertion depth was established, leading to the derivation of the relationship between furnace power and electrode insertion depth.The optimization component of the second stage considers four main elements in the objective function: the profit margin between buying and selling electricity, dissatisfaction with the cost of electricity purchases, incentive Table 1.Functional capabilities of intelligent energy terminals.

Function Description
Resource management Creation of a database for load resources, analysis of the characteristics of those resources, live monitoring, and identifying features www.nature.com/scientificreports/compensation from the auxiliary service market, and SAF penalties due to differences in cleared power.
Constraints include the relationship between surplus electricity and wind-solar output, surplus electricity and optimized electricity volume, the current operating power of the SAF and its total electricity sold, the relationship between SAF's baseline load and operating power, and the relationship between wind-solar power generation and electricity trading.
Combining the optimizations of these two stages, we have obtained real-time sustainable energy dispatch results and SAF control strategies, providing reliable economic optimization for the overall sales direction of new energy and for SAF system strategies in response to market fluctuations (Fig. 3).

Operating properties
In the ferroalloy submerged arc furnaces, operating resistance is one of the pivotal parameters.This is conventionally characterized as the resistance between the furnace's electrodes and its foundational bottom.The significance of this operating resistance cannot be understated, especially when considering the intricate production processes associated with these furnaces.Contemporary control strategies for ferroalloy submerged arc furnaces are predominantly anchored on the tenet that such resistance remains invariant.This is particularly evident when examining the resistance metrics associated with each phase electrode: In the context where R represents the operating resistance of individual electrodes, K furnace signifies the product's resistance constant, and P furance denotes the cumulative effective power of the ferroalloy submerged arc furnaces.Given this, Thus, we can get another expression equation for the total effective power of the SAF: (1) R = K furnace P −1/3 furnace .
(2) In the given context, I symbolizes the electrode current for each phase.The interrelationships between the operating resistance of the ferroalloy submerged arc furnace, its resistance constant, current, and power dynamics are illustrated in Fig. 4.
Both theoretical evaluations and practical production insights have confirmed that, given consistent geometric and electrical parameters, along with charging attributes of the ferroalloy submerged arc furnaces, an inverse relationship exists between the operating resistance of these furnaces and the depth to which the electrode is inserted.
In the given context, C represents the coefficient associated with the heat distribution of the charge, ρ denotes the mean resistivity of the charge across layers, K H signifies the multiplier of the electrode's central distance, and h corresponds to the depth at which the electrode is inserted into the charge.
The correlation between the power of the ferroalloy submerged arc furnace and variations in the depth of electrode insertion is as follows: Consequently, by altering the electrode insertion depth, one can adjust the power of the submerged arc furnace, as depicted in Fig. 5.

LSTM network for dynamic renewable generation prediction
Considering the uncertain renewable generation, a prediction function should be added in the renewable system to facilitate the pricing decision-making process.In this subsection, the LSTM-based sequence-to-sequence model (see Fig. 6a) is formulated to predict future renewable output.This model includes three parts, encoder, encoder vector and decoder, aiming to map a fixed-length input with a fixed-length output where the length of the input and output may differ.The LSTM network is a variant of the standard recurrent neural network (RNN) 19 .By substituting LSTM units (see Fig. 6b) for the basic hidden neurons in RRN, the LSTM network can deal with the issues caused by gradient vanishing and the explosion of long-term dependencies 20 .As shown in Fig. 6, the LSTM unit includes three kinds of gate controllers, i.e., input gate, forget gate, and output gate, which are mainly used to determine what information should be remembered.The following equations can calculate these three gates: where σ represents the sigmoid function, whose output is in the range of [0,1], describing how much of information should be let through.W ix , W ih , W fx , W fh , W fx and W fh denote matrices of weights for the input gate, forget gate and output gate.b i , b f and b o represent the vectors of biases for these gates.It should be noted that temporal memory is implemented in the LSTM network by switching different gates so as to prevent the gradient vanishing.Therefore, the external inputs of the LSTM unit are the previous cell state c t−1 , the previous hidden state h t−1 and the current input vector x t .
Then, an intermediate state C t is generated, given as, Accordingly, the memory cell and hidden state of this LSTM are updated as, where tanh is the nonlinear activation function and the operator * denotes the pointwise multiplication operation for two vectors.
In this work, historical data of renewable are collected and put into the proposed encoder-decoder sequenceto-sequence model, where the LSTM network is used as the training algorithm.As the output of this prediction (6) model, y t , y t+1 , . . ., y t+12 denotes the predicted future 12-h renewable generation.This predicted information will be fed into the Q-learning process to make a pricing strategy in a rolling-window manner.

ELM algorithm for electricity price prediction
As a well-studied training algorithm, the extreme learning machine (ELM) algorithm has become a popular topic in the fields of load forecasting 21 , electricity price forecasting 22 , and renewable generation forecasting 23 .Since the input weights and biases of the hidden layer are randomly assigned and free to be tuned further when using the ELM algorithm, some exceptional features can be obtained, e.g., fast learning speed and good generation.To deal with the uncertainties of electricity prices and solar generations, we propose an ELM-based feedforward NN to extract features of these two uncertainties dynamically.Specifically, at each hour, the inputs of the trained feedforward NN are past 24-h electricity price data and solar generation data, and its outputs are the forecasted future 24-h trends of electricity prices and solar generations.and G T of this paper are imported, then the hidden layers in the feed-forward neural network are substituted into the neural network nodes, and finally the prediction results of the posterior moments are output as shown in the following Fig. 7.

Optimization model
In the optimization model proposed in this paper, the objective function comprises multiple sub-functions.This model aims to achieve the optimal power allocation of the surplus output from wind and solar generation by considering various expenditure aspects and satisfying various constraints.The specific mathematical formula is as follows:  where G 1 represents the gains and losses arising from the process of buying and selling electricity from the grid; G 2 introduces a dissatisfaction factor α to describe the dissatisfaction cost if the SAF is not at fully rated power, note that α can be defined by users case by case; G 3 signifies the incentive compensation accrued from the ancillary service market; and G 4 constitutes the penalty incurred due to the discrepancy between the actual power of the ferroalloy submerged arc furnace and the clearing power in the ancillary service market.Furthermore, Sell is defined as the electricity price for grid sales, subject to temporal fluctuations, altering every fifteen minutes; p Sell−Grid is quantified as the electricity quantity sold to the grid from the optimized segment; Buy is stipulated as the fixed electricity price from the grid; p Buy is the volume of electricity procured from the grid; p spot (t) is articulated as the electricity price within the spot market; p IBDR (t) is the incentive price for ancillary services; P Kn,base (t) is the baseline load of the ferroalloy submerged arc furnace; P Kn,real (t) represents the actual power of the ferroalloy submerged arc furnace; and P Kn,clearing (t) is the clearing power within the ancillary service market; and ( 13) is the combined objective function.
Subject to: wherein P optimal denotes the excess power available after fulfilling the baseline power demands of the SAFs, P PV−Wind (t) encapsulates the aggregated electricity output from both photovoltaic power stations and wind farms at a given temporal node, P min is the stipulated minimum power threshold for the SAF, precisely 6.33 MW, P max signifies the peak power capacity of the SAF, capped at 10.17 MW, P optimal−SAF represents the quantum of the optimize P optimal apportioned to the SAF, whereas P Sell−Grid corresponds to the fraction of the optimized P optimal designated for grid sales, P Sell−SAF designates the cumulative power allocated to the SAF, P SAF is indicative of the SAF's current operational power, and P Sell−Grid stands for the aggregate power dispatched to the grid.

Case study Prediction of renewable energy
The renewable energy dataset for network training is collected from the the Global Energy Forecasting Competition 2014 24 , which can be publicly accessed online.The dataset covers 12 numerical weather prediction (NWP) variables and the hourly renewable power output measured from 1st Apr 2012 to 1st Jul 2014 at three neighboring renewable plants in Australia.In this case, we only use the renewable power output observed in site 1 for model construction, integration of NWP information and the neighbored measurements is beyond the scope of this work, since historic samples are enough to establish the forecasting model on a rolling basis.Before learning, the measurements at night (7:00 pm-7:00 am) are removed, the data from 1st Apr 2012 to 1st Apr 2014 is used for model training, and the rest is for prediction.The settings of the adopted encoder-decoder LSTM network are listed in Table 2.
The predictive skill of the well-trained LSTM network concerning different look-ahead horizons is shown in Fig. 8. Based on this predicted information, a sequence of optimal actions can be selected by the Q-learning agent ( 13) P optimal = P PV−Wind (t) − P min P optimal = P optimal−SAF + P Sell−Grid P Sell−SAF = P min + P optimal−SAF P Kn,base (t) ≤ P SAF ≤ P max P SAF = P Sell−SAF P PV−Wind (t) = P Sell−Grid + P Sell−SAF , www.nature.com/scientificreports/with the consideration of the trade-off between the current reward and future reward by setting the discount factor.However, only the action for a current hour is executed.Therefore, a relatively large perdition error will have a minor effect on our result.It should be noted that taking into account the NWP information and making a dynamic intraday adjustment on the day-ahead forecast can further improve the forecasting accuracy, which would benefit the reinforcement learning-based decision-making process on finding the near-optimal solutions, this will be investigated in our future work.

Prediction of price
This study uses real-world data to train our proposed feedforward NN.The hourly data on electricity prices from January 1, 2017, to December 31, 2018 lasting 730 days are collected from PJM 29 .After a number of accuracy tests, the trained feedforward NN for electricity price data consists of three layers, i.e., one input layer with 24 neurons, one hidden layer with 40 neurons and one output layer with one neuron.The number of training episode is 50,000.Figure 9 shows the performance of the proposed feedforward NN for extracting features of electricity prices.The blue line represents the extracted future values and the red line indicates the actual values.It can be observed that extracted trends of electricity prices are generally similar to actual ones, though small errors can be observed from some time slots.Therefore, the proposed feedforward NN can generate accurate and reasonable forecasting values, which can benefit the following decision-making process for energy consumption scheduling.

Optimal parameters
Recently developed SAFs are predominantly semi-enclosed or entirely enclosed, featuring low-profile hoods.In regions marked by ethnic diversity, frontier landscapes, and socio-economic challenges, the capacity of these SAFs typically exceeds 12.5 MVA.Consequently, an SAF with a 12.5 MVA capacity has been chosen for analysis, with its associated parameters presented in Table 3.The electrical characteristics of such a furnace can be deduced as follows: The secondary voltage of the transformer varies between 126 and 162 V, with the SAF's designated voltage being 152 V.The standard current for this furnace is 50.30kA, with a maximum surge up to 62.75 kA.Power metrics for this SAF are delineated as 7.65 MW (nominal), 6.33 MW (minimum), and 10.17 MW (peak).www.nature.com/scientificreports/At the same time, Fig. 10 shows the output curve of the distributed PV system, the wind energy absorption curve and the base load curve of the furnace.
Considering the risk associated with uncertain parameters, this article contains a significant number of such uncertainties.Moreover, when these parameters vary, the optimized insertion depth values will be influenced to a certain extent.With regard to corresponding safety concerns, it is generally believed that the electrode is in the most ideal and secure position when the insertion depth is within the range of (0.60 ~ 0.70) times the electrode diameter D. Assuming that the maximum power of the submerged arc furnace is 10.17 MW when the electrode insertion depth is 0.72 m (= 0.7D), based on the relationship between electrode insertion depth and power, the minimum electrode insertion depth is determined to be 0.61 m ( = (h max • ( P min P max ) ).This risk is explicitly incorporated into the optimization code as a constraint to prevent safety risks associated with uncertain parameters.
The simulated selling price of electricity in this study varies over time, as illustrated in Fig. 11, fluctuating between 13.8 $/MWh and 69.4 $/MWh.The power baseline used for optimization by SAF is depicted in Fig. 12, hovering around 8 MW.Concurrently, the fluctuation range for the electricity spot market price is 6.3 $/MWh to 83 $/MWh.Within this discussion, the transmission and distribution fee and the government fund are pivotal components.In this paper, both the transmission and distribution fee and the government fund are set at a fixed rate of 14.8 &/MWh; the market rewards price for auxiliary services is set at 27.7 $/MWh.The distributed PV system on-grid pricing is set at 42.75 $/MWh, and the grid electricity selling price is provisionally set at 122.2 $/MWh.Detailed pricing can be found in Table 4.

Results of the proposed planning model
Figure 13 provides a detailed presentation of the energy consumption of the optimized SAF, the allocation of wind and solar power generation, and the electricity transactions with the grid.As illustrated in Fig. 13, within 24 h, the output from wind and solar energy largely satisfies the power demands of SAF.While there are moments when electricity needs to be purchased from the grid, SAF can still effectively absorb a substantial portion of the electricity produced by distributed energy sources.This further proves that, in an electrical network integrated with intelligent energy terminals, utilizing appropriate optimization strategies can significantly enhance the absorption rate of renewable energy sources and reduce energy wastage.
The allocation of renewable energy sources and the generation of electricity from renewable energy sources are given in Fig. 14.As shown in Fig. 14, the renewable energy farm designed here tends to supply the electricity it produces to the SAF system rather than to the grid.Therefore, the SAF's consumption of sustainable energy can It is widely known that wind and solar power generation are constrained by meteorological conditions, with their output fluctuating by changes in wind speed and solar intensity.Such fluctuations could potentially result in instability in the grid's voltage and frequency, leading to a series of issues, including: (1) deterioration in power quality; (2) increased complexity in grid operational dispatch; (3) electricity price volatility; (4) heightened demand for energy storage.However, by employing the energy-sharing model proposed in this study, SAF's effective absorption of wind and solar energy can significantly mitigate the challenges posed by the intermittency of these sources, thereby enhancing the electrical grid's stability.
The cost data of the optimized time node is shown in Table 5.It can be seen that in the case of multi-constraint optimization, sometimes there is a certain income in the power grid electricity transaction, and sometimes a certain amount of power needs to be spent to purchase electricity to meet the power demand of SAF.At the same time, due to the absorption of distributed energy generation, the market will have certain rewards and fines for such auxiliary services.As indicated in the Table 5 below, after the adaptation of the optimization model proposed in this paper, a total loss recovery of 1906.84USD per day can be achieved during the optimized time period.

Sensitivity analysis of the dissatisfaction factor
Figure 15 illustrates the optimization outcomes juxtaposed with the electrode insertion depths across four distinct scenarios, characterized by varying α values: Scenario 1 (α = 0), Scenario 2 (α = 200), Scenario 3 (α = 300), and Scenario 4 (α = 600).An inspection of Fig. 15 reveals that the electrode insertion depths consistently lie between 0.61 m and 10.17 m, suggesting that these depths are within a reasonable range.
The light intensity is nearly negligible during the early morning interval, specifically from time node 0 to time node 30.However, the prominence of wind power during nocturnal hours facilitates the harnessing of more wind energy.This results in the emergence of optimized time nodes at 8, 18, and 20.Conversely, during daylight hours, from time node 30 to time node 70, the SAF power optimization closely mirrors the oscillations in renewable

Compared with existing research
Robust optimization is a widely adopted optimization technique, predicated on the principle of formulating models based on the least favorable conditions, reflecting a conservative approach while emphasizing safety.In this subsection, we have employed robust optimization to enhance our existing model and have illustrated the outcomes in Fig. 17.This figure presents a comparative analysis of the costs associated with our optimization method versus those obtained via robust optimization, all predicated on a uniform dissatisfaction coefficient.It is discernible from Fig. 17   www.nature.com/scientificreports/robust optimization approach; correspondingly, the losses incurred by our method are also consistently lower than those resulting from robust optimization.Notably, at the 58th time node, robust optimization resulted in a deficit, whereas our approach, harnessing LSTM and ELM for the prediction of baseline data, achieved profitability.Table 6 lists the total revenue of the SAF system under the two optimisation methods, the proposed method and the robust method, and it is clear from the comparison that the total daily revenue of the system for the proposed method is higher than that of the robust method by $426.24.These empirical findings substantiate the superiority of our optimization algorithm over extant research methodologies, striking a balance between ensuring safety and economic viability.

Conclusion
This paper presents an innovative method for harmonizing Submerged Arc Furnace (SAF) systems with renewable energy sources within modern intelligent energy terminals.Employing a dual-phase approach, it first utilizes data-driven predictions to navigate the complexities of renewable energy fluctuations and variable electricity market rates.Specifically, an LSTM network is implemented for the predictive analysis of renewable energy output, showcasing its proficiency in addressing the intricacies of fluctuating energy sources.Concurrently, the ELM model is harnessed for forecasting electricity prices, providing valuable insights into the dynamic market scenario.Following the predictive phase, an optimization model is applied for pinpoint accuracy in SAF dispatching.Local renewable energy consumption is maximized through strategic liaisons between intelligent energy terminals, demand-side mechanisms, and load management infrastructure.Our case study, anchored on a 12.5 MVA SAF system interfaced with 12 MW renewable generators in a fluctuating electricity market, underscores the model's capability to slash operational costs and amplify renewable energy use.By comparing the results with the robust optimisation, the optimisation in this paper outperforms the robust optimisation and is more economical with safety.Such strides forward promise enhanced grid resilience and decreased renewable energy wastage (Supplementary Information).
Table 6.Total revenue of the two methods.

Figure 1 .
Figure 1.Connection between intelligent energy terminal and demand-side equipment and load management system.

Figure 3 .
Figure 3. Intelligent energy terminal control system architecture for ferroalloy submerged arc furnace and distributed PV system.

Figure 4 .
Figure 4. Ferroalloy submerged arc furnace operating resistance, resistance constant, current and power relations.

Figure 5 .
Figure 5. Relation between ferroalloy submerged arc furnace power and electrode insertion depth change.

Figure 6 .
Figure 6.(a) LSTM-based encoder-decoder sequence to sequence model and (b) Structure of an LSTM unit.

Figure 8 .
Figure 8. Prediction performance with different time steps.

Figure 9 .
Figure 9.Comparison of the actual and predicted electricity prices on January 1-4, 2019.

Figure 16 .
Figure 16.Cost with different values of α.

Table 2 .
Summary of training settings of LSTM network for renewable generation prediction.

Table 4 .
Case study specifications for the electricity market.